<script>
    import{
		getUserInfo
	} from '@/services/base.js'
	export default {
		onLaunch: async function() {
			console.log('App Launch')
			const token=uni.getStorageSync('token')
			const userConfig=uni.getStorageSync('userConfig')
		
		if (!!token) {
			const userInfo =await getUserInfo()
			console.log(userInfo,'1234');
			
		}else{
			uni.reLaunch({
				url:'/pages/login/phoneLogin'
			})
		}
	},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
</style>
